package com.ellricky.excute_president.ui.fragment

import android.os.Bundle
import android.view.View
import com.ellricky.baselib.entity.PersonItemEntity
import com.ellricky.baselib.ui.base.PersonListFragment
import com.ellricky.baselib.ui.teacher.EmployeeDetailActivity
import com.ellricky.baselib.util.EAppUtil
import com.ellricky.baselib.util.jump
import com.ellricky.excute_president.R

class EmployeeManageFragment : PersonListFragment() {

    companion object {
        fun newInstance(): EmployeeManageFragment {
            val fragment = EmployeeManageFragment()
            val bundle = Bundle()
            fragment.arguments = bundle
            return fragment
        }
    }

    override fun initUIView(view: View?) {
        super.initUIView(view)
        mTvTitle.setText(R.string.base_employee_manage)
    }

    override fun getUrlPath(): String {
        return ""
    }

    override fun onClickPersonItem(personItemEntity: PersonItemEntity) {
        super.onClickPersonItem(personItemEntity)
        jump<EmployeeDetailActivity> {
            putExtra("id",personItemEntity.id)
            putExtra("card_type",personItemEntity.cardType)
        }
    }
}